package Java0106;

import java.util.Random;

public class Java02 {
    public static void main(String[] args) {

        // (2)随机数类java.util.Random
        char[] arr = {'你','我','a','b','x','y'};
        Random random = new Random();
        for (int i = 0; i < 4; i++) {
            int r = random.nextInt(arr.length);
            System.out.println(arr[r]);
        }

    }
}